package com.jxx.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class PageController {
    @RequestMapping("page/{moduleName}")
    public String module(@PathVariable String moduleName) {
        return "webStage/"+moduleName;
    }
    @RequestMapping("{moduleName}")
    public String login(@PathVariable String moduleName) {
        return moduleName;
    }

    @RequestMapping("page/{module}/{moduleName}")
    public String pay(@PathVariable String module,@PathVariable String moduleName) {
        return "webStage/"+module+"/"+moduleName;
    }
    @RequestMapping("page/{item}/{details}/{itemId}")
    public String details(@PathVariable String item,
                          @PathVariable String details,@PathVariable Integer itemId) {
        return "webStage/"+item+"-"+details;
    }
    /**
    * @Description: 订单详情跳转
    * @Param: [module, home, orderDetail, orderId]
    * @return: java.lang.String
    * @Author: laixinghua
    * @Date: 2020/12/9 0009 下午 3:55
    */
    @RequestMapping("page/{module}/{home}/{orderDetail}/{orderId}")
    public String orderDetails(@PathVariable String module,@PathVariable String home,
                          @PathVariable String orderDetail,@PathVariable Integer orderId) {
        return "webStage/"+module+"/"+home+"-"+orderDetail;
    }
}
